/**
 * Created: 03/24/2010
 */
package org.klarblick.linkbox.model.dao;

import java.util.List;

import org.klarblick.linkbox.model.entities.Link;

/**
 * Dao interface for {@link Link}s.
 * 
 * @author Sebastian Engel <sebastian.engel@klarblick.org>
 *
 */
public interface ILinkDao {
	
	/**
	 * Finds and returns all {@link Link}s ordered by their id.
	 * 
	 * @return a list of {@link Link}s ordered by their id.
	 */
	List<Link> findAll();
	
	/**
	 * Adds a new link.
	 * 
	 * @param link the {@link Link} to add
	 */
	void addLink(Link link);

	/**
	 * Removes a {@link Link}.
	 * 
	 * @param link the {@link Link} to remove
	 */
	void removeLink(Link link);
}
